#ifndef NETWORKMODEL_H
#define NETWORKMODEL_H

#include "../base/basemodel.h"

class NetworkModel : public BaseModel
{
public:
    NetworkModel();
    virtual void init() override;
    virtual void setModel(QSharedPointer<Data> dataPtr) override;
    virtual QSharedPointer<Data> getModelData() override;

private:
    QString m_ip;
    QString m_targetPort;
    QString m_localPort;
    QString m_textData; // 发送/接收的数据
    bool m_specificLocalPort; // 是否指定本地端口
    bool m_showByHex; // 十六进制显示
    int m_bytesHasSend;
    int m_byteHasRecv;
};

#endif // NETWORKMODEL_H
